Skip to content

chore: bump android-sdk to 3.2.2 - #58

Merged
Archish27 merged 1 commit into
mainfrom
chore/android-sdk-3.2.2
Oct 28, 2026
Merged

Archish27 merged 1 commit into
mainfrom
chore/android-sdk-3.2.2

Conversation

@Archish27

Copy link
Copy Markdown
Member

Why

Every Android launch produced two sessions:

  • the real one, with the JS session id, replay and all events
  • a phantom one with only a native AppStart at 00:00 and a Paused when the app was backgrounded, the same duration, and "This session has no replay yet"

Seen on visitly-dev (My Visitly): 2c34afa1… (phantom, single Paused at 14:42:02Z) next to 3a572b1e… (real, last event 14:42:01Z).

The bridge calls disableActivityLifecycleMonitoring(), but android-sdk ≤ 3.2.1 ignored it. otel-android instrumentation discovery stayed on, so its ActivityLifecycleInstrumentation started an AppStart span inside build(), before the bridge injects the JS session id. That span stayed open until the first lifecycle callback (Paused). Fixed in android-sdk 3.2.2 (middleware-labs/middleware-android#89).

Changes

  • android/build.gradle: android-sdk 3.2.0 → 3.2.2
  • package.json: 2.3.0 → 2.3.1 (2.3.0 is already on npm). mw.rum.sdk.version reads it.
  • README: the Android minimum is now 3.2.2+

Testing

  • :middleware.io_middleware-react-native:compileDebugJavaWithJavac builds against android-sdk:3.2.2 resolved from Maven Central.

android-sdk 3.2.2 stops otel-android instrumentation discovery when activity
lifecycle monitoring is disabled. Before this, every Android launch produced
an extra 'AppStart ... Paused' session with no replay alongside the real one.
@Archish27
Archish27 merged commit 93f751c into main Oct 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant